import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Type from '../views/Type.vue'
import Detail from '../views/Detail.vue'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect: '/home',
    },
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/type',
      name: 'type',
      component: Type,
    },
    {
      path: '/detail',
      name: 'detail',
      component: Detail,
    },
    
  ],
})

export default router
